package com.wgchao.identityrightsmanagement.domain.permission.repository;

import com.wgchao.identityrightsmanagement.domain.BaseRepository;
import com.wgchao.identityrightsmanagement.domain.permission.model.OfficePermissionInformation;
import com.wgchao.identityrightsmanagement.domain.permission.model.PermissionIdentify;

import java.util.List;

public interface OfficePermissionInformationRepository extends BaseRepository<OfficePermissionInformation, PermissionIdentify> {
    void deleteAllByDepartment(String departmentCode, String operator);
    void deleteAllByOffice(String officeCode, String operator);
    void cleanUpIllegalCorrespondence(String departmentCode, List<String> officeCodes, String operator);
}
